<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        fn0(function(data){
            fn1(function(fn1data){
                fn2(function(fn2data){
                    fn3(function(fn3data){
                        console.log(data,fn1data,fn2data,fn3data);
                    })
                
            })
        });

        // 以上的情况就是回调地狱


   </script>
</body>
</html>